package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_ctdt_config")
public class Tbl_CTDT_Config implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_CTDT_HeDaoTao heDaoTaoId = null;
   private Integer khoaHoc;
   private Integer soTCMin;
   private Integer soTCMax;
   private Integer soHKChinh;
   private Integer soHKMax;
   private Integer soTCHKMax;
   private Integer soTCDieuChinh;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="heDaoTaoId")
   @ForeignKey(name="FK_tbl_CTDT_HeDaoTao_tbl_CTDT_Config")
   public Tbl_CTDT_HeDaoTao getHeDaoTaoId() {
	    return heDaoTaoId;
   }
   public void setHeDaoTaoId(Tbl_CTDT_HeDaoTao heDaoTaoId) {
	    this.heDaoTaoId=heDaoTaoId;
   }

   public Integer getKhoaHoc() {
   	return khoaHoc;
   }
   public void setKhoaHoc(Integer khoaHoc) {
   	this.khoaHoc= khoaHoc;
   }

   public Integer getSoTCMin() {
   	return soTCMin;
   }
   public void setSoTCMin(Integer soTCMin) {
   	this.soTCMin= soTCMin;
   }

   public Integer getSoTCMax() {
   	return soTCMax;
   }
   public void setSoTCMax(Integer soTCMax) {
   	this.soTCMax= soTCMax;
   }

   public Integer getSoHKChinh() {
   	return soHKChinh;
   }
   public void setSoHKChinh(Integer soHKChinh) {
   	this.soHKChinh= soHKChinh;
   }

   public Integer getSoHKMax() {
   	return soHKMax;
   }
   public void setSoHKMax(Integer soHKMax) {
   	this.soHKMax= soHKMax;
   }

   public Integer getSoTCHKMax() {
   	return soTCHKMax;
   }
   public void setSoTCHKMax(Integer soTCHKMax) {
   	this.soTCHKMax= soTCHKMax;
   }

   public Integer getSoTCDieuChinh() {
   	return soTCDieuChinh;
   }
   public void setSoTCDieuChinh(Integer soTCDieuChinh) {
   	this.soTCDieuChinh= soTCDieuChinh;
   }
}//endClass 

